<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<body>
    <!-- 侧边栏片段 -->
    <aside class="sidebar" th:fragment="sidebar(currentPath)">
        <div class="sidebar-header">
            <div class="logo" style="cursor: pointer;">
                <span data-icon="medical-records"></span>
                <span>医疗助手</span>
            </div>
            <button id="sidebarToggle" class="sidebar-toggle" style="cursor: pointer;">
                <span data-icon="menu"></span>
            </button>
        </div>
        
        <nav class="sidebar-nav">
            <ul>
                <li th:classappend="${currentPath == '/dashboard' ? 'active' : ''}">
                    <a href="/dashboard">
                        <span data-icon="dashboard"></span>
                        <span>仪表盘</span>
                    </a>
                </li>
                <li th:classappend="${currentPath == '/patients' ? 'active' : ''}">
                    <a href="/patients">
                        <span data-icon="patients"></span>
                        <span>患者管理</span>
                    </a>
                </li>
                <li th:classappend="${currentPath == '/appointments' ? 'active' : ''}">
                    <a href="/appointments">
                        <span data-icon="appointments"></span>
                        <span>预约管理</span>
                    </a>
                </li>
                <li th:classappend="${currentPath == '/diagnosis' ? 'active' : ''}">
                    <a href="/diagnosis">
                        <span data-icon="diagnosis"></span>
                        <span>智能诊断</span>
                    </a>
                </li>
                <li th:classappend="${currentPath == '/medical-records' ? 'active' : ''}">
                    <a href="/medical-records">
                        <span data-icon="medical-records"></span>
                        <span>病历管理</span>
                    </a>
                </li>
                <li th:classappend="${currentPath == '/settings' ? 'active' : ''}">
                    <a href="/settings">
                        <span data-icon="settings"></span>
                        <span>系统设置</span>
                    </a>
                </li>
            </ul>
        </nav>
        
        <div class="sidebar-footer">
            <a href="#" id="logoutBtn" class="logout-btn">
                <span data-icon="logout"></span>
                <span>退出登录</span>
            </a>
        </div>
    </aside>
</body>
</html> 